package ch.ethz.inf.vs.sunspot.resources;

import java.util.ArrayList;
import java.util.List;

public class RESTSService {

	private String label;
	private String dataFormat;
	private List<RESTSOperation> operations;
	
	public String getLabel() {
		return this.label;
	}
	
	public void setLabel(String label) {
		this.label = label;
	}

	public String getDataFormat() {
		return this.dataFormat;
	}
	
	public void setDataFormat(String dataFormat) {
		this.dataFormat = dataFormat;
	}

	public List<RESTSOperation> getOperations() {
		return this.operations;
	}
	
	public void addOperation(RESTSOperation restsOperation) {
		if (this.operations == null) this.operations = new ArrayList<RESTSOperation>();
		this.operations.add(restsOperation);
	}

}
